package _spring_test._PropertyPlaceholder;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: huangya
 * @Date: 2020/5/18
 * @Description:
 */
public class PropertyPlaceholderTest4 {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("PropertyPlaceholder/application-property-placeholder4.xml");
        User user = (User)ac.getBean("user");
        System.out.println(user.getName());
    }
}
